package com.laoguo.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class ScheduledTask {
    @Scheduled(cron = "0/1 * * * * ?")
    public void testScheduled(){
        System.out.println("执行时间:" + new Date());
    }
}
